package com.base.po.voip;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 分享返利记录
 * 
 * @author Administrator
 *
 */
public class Rewards {
    private Integer id; // 主键ID

    private Integer type; // 类型  1-分享 2-在线充值分润 （顺通  5-总金额 6-提现金额 7-粉丝增加数 ）8-自建商城返佣

    private String parentid; // 应用ID

    private String userid; // 获得者用户ID 当前用户ID

    private String presentid; // 赠送者用户ID 当前用户的子级ID

    private BigDecimal presentmoney; // 赠送通话金额

    private BigDecimal presentshopmoney; // 赠送购物金额

    private Double integral; // 获得积分

    private Integer level; // 当前级别分润

    private Date createtime; // 获得时间
    
    private String ptmobile; // 赠送者用户手机号码
    
    private String ptusername;// 赠送者用户名
    
    private String moneystatus;// 赠送通话金额是否成功
    
    private String shopmoneystatus;// 赠送购物金额是否成功

	private String orderid;// 绑定的订单id

	private String subMobile;

	private String subUsername;

	private String subParentid;

	private String subShopid;

	private Boolean subDatastatus;

	private Date subCreatetime;

	private Date subEndtime;

	private Integer isrecharge;// 0未兑换 1已兑换 2已退款

	private Subscribers subscribers;

	/**
	 *  @Date: 2020/5/30 14:59
	 *  @Description:
	 *  枚举构造内部类
	 */
	public  enum MyEnum{
		Enum1(1,"分享"),Enum2(2,"在线充值分润"),Enum3(8,"自建商城返佣");
		//枚举值所包含的属性
		private Integer key;
		private String value;
		//构造方法

		MyEnum(Integer key, String value) {
			this.key = key;
			this.value = value;
		}

		public Integer getKey() {
			return key;
		}

		public void setKey(Integer key) {
			this.key = key;
		}

		public String getValue() {
			return value;
		}

		public void setValue(String value) {
			this.value = value;
		}

		public static String getEnumByKey(Integer key){
			for (MyEnum e:MyEnum.values()){
				if (key.equals(e.getKey())){
					return e.getValue();
				}
			}
			return null;
		}
	}


	public Subscribers getSubscribers() {
		return subscribers;
	}

	public void setSubscribers(Subscribers subscribers) {
		this.subscribers = subscribers;
	}

	public Rewards() {
		super();
	}

	public Rewards(Integer type, String parentid, String userid, String presentid, Double integral, Integer level,
			Date createtime) {
		super();
		this.type = type;
		this.parentid = parentid;
		this.userid = userid;
		this.presentid = presentid;
		this.integral = integral;
		this.level = level;
		this.createtime = createtime;
	}

	public Rewards(Integer type, String parentid, String userid, String presentid, Double integral, Integer level,
				   Date createtime, String orderid) {
		super();
		this.type = type;
		this.parentid = parentid;
		this.userid = userid;
		this.presentid = presentid;
		this.integral = integral;
		this.level = level;
		this.createtime = createtime;
		this.orderid = orderid;
	}

	public Rewards(Integer type, String parentid, String userid, String presentid, Double integral, Integer level,
				   Date createtime, Integer isrecharge) {
		super();
		this.type = type;
		this.parentid = parentid;
		this.userid = userid;
		this.presentid = presentid;
		this.integral = integral;
		this.level = level;
		this.createtime = createtime;
		this.isrecharge = isrecharge;
	}

	public String getPtmobile() {
		return ptmobile;
	}

	public void setPtmobile(String ptmobile) {
		this.ptmobile = ptmobile;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getParentid() {
        return parentid;
    }

    public void setParentid(String parentid) {
        this.parentid = parentid == null ? null : parentid.trim();
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid == null ? null : userid.trim();
    }

    public String getPresentid() {
        return presentid;
    }

    public void setPresentid(String presentid) {
        this.presentid = presentid == null ? null : presentid.trim();
    }

    public BigDecimal getPresentmoney() {
        return presentmoney;
    }

    public void setPresentmoney(BigDecimal presentmoney) {
        this.presentmoney = presentmoney;
    }

    public BigDecimal getPresentshopmoney() {
        return presentshopmoney;
    }

    public void setPresentshopmoney(BigDecimal presentshopmoney) {
        this.presentshopmoney = presentshopmoney;
    }

    public Double getIntegral() {
        return integral;
    }

    public void setIntegral(Double integral) {
        this.integral = integral;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
    
	public String getPtusername() {
		return ptusername;
	}

	public void setPtusername(String ptusername) {
		this.ptusername = ptusername;
	}

	public String getMoneystatus() {
		return moneystatus;
	}

	public void setMoneystatus(String moneystatus) {
		this.moneystatus = moneystatus;
	}

	public String getShopmoneystatus() {
		return shopmoneystatus;
	}

	public void setShopmoneystatus(String shopmoneystatus) {
		this.shopmoneystatus = shopmoneystatus;
	}

	public Integer getIsrecharge() {
		return isrecharge;
	}

	public void setIsrecharge(Integer isrecharge) {
		this.isrecharge = isrecharge;
	}

	public String getSubMobile() {
		return subMobile;
	}

	public void setSubMobile(String subMobile) {
		this.subMobile = subMobile;
	}

	public String getSubUsername() {
		return subUsername;
	}

	public void setSubUsername(String subUsername) {
		this.subUsername = subUsername;
	}

	public String getSubParentid() {
		return subParentid;
	}

	public void setSubParentid(String subParentid) {
		this.subParentid = subParentid;
	}

	public String getSubShopid() {
		return subShopid;
	}

	public void setSubShopid(String subShopid) {
		this.subShopid = subShopid;
	}

	public Boolean getSubDatastatus() {
		return subDatastatus;
	}

	public void setSubDatastatus(Boolean subDatastatus) {
		this.subDatastatus = subDatastatus;
	}

	public Date getSubCreatetime() {
		return subCreatetime;
	}

	public void setSubCreatetime(Date subCreatetime) {
		this.subCreatetime = subCreatetime;
	}

	public Date getSubEndtime() {
		return subEndtime;
	}

	public void setSubEndtime(Date subEndtime) {
		this.subEndtime = subEndtime;
	}

	public Rewards(Integer type, String parentid, String userid, String presentid, BigDecimal presentmoney,
				   BigDecimal presentshopmoney, Integer level, Date createtime) {
		super();
		this.type = type;
		this.parentid = parentid;
		this.userid = userid;
		this.presentid = presentid;
		this.presentmoney = presentmoney;
		this.presentshopmoney = presentshopmoney;
		this.level = level;
		this.createtime = createtime;
	}

	public Rewards(Integer type, String parentid, String userid, String presentid, BigDecimal presentmoney,
			BigDecimal presentshopmoney, Double integral, Integer level, Date createtime) {
		super();
		this.type = type;
		this.parentid = parentid;
		this.userid = userid;
		this.presentid = presentid;
		this.presentmoney = presentmoney;
		this.presentshopmoney = presentshopmoney;
		this.integral = integral;
		this.level = level;
		this.createtime = createtime;
	}

	public Rewards(Integer id, Integer type, String parentid, String userid, String presentid, BigDecimal presentmoney,
			BigDecimal presentshopmoney, Double integral, Integer level, Date createtime) {
		super();
		this.id = id;
		this.type = type;
		this.parentid = parentid;
		this.userid = userid;
		this.presentid = presentid;
		this.presentmoney = presentmoney;
		this.presentshopmoney = presentshopmoney;
		this.integral = integral;
		this.level = level;
		this.createtime = createtime;
	}
    
    
}